//
//  YZAttDoc.m
//  kuaiyi
//
//  Created by Liu on 16/5/4.
//
//

#import "YZAttDoc.h"

@implementation YZAttDoc

-(instancetype)initWithDic:(NSDictionary *)dic {
    
    if (self = [super init]) {
        [self setValuesForKeysWithDictionary:dic];
    }
    return self;
}

+(instancetype)AttDocWithDic:(NSDictionary *)dic {
    return [[self alloc]initWithDic:dic];
}

+(NSArray *)AttDocArr {
    
    NSArray *dicArr = [NSArray arrayWithContentsOfFile:[[NSBundle mainBundle]pathForResource:@"AttDoc.plist" ofType:nil]];
    
    NSMutableArray *desArr = [NSMutableArray arrayWithCapacity:dicArr.count];
    for (NSDictionary *dic in dicArr) {
        YZAttDoc *doc = [YZAttDoc AttDocWithDic:dic];
        [desArr addObject:doc];
    }
    return desArr;
}

@end
